// page/member/qrcode.js
Page({
  data: {
        isHide: 0,
        qrcode: ""  //二维码
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
        var that = this
        var openid = wx.getStorageSync('openid');
        var app = getApp()
        wx.request({
          url: app.globalData.host + '&g=App&m=Member&a=my_ewm', //仅为示例，并非真实的接口地址
          data: { openid: openid},
          header: {
            'content-type': 'application/json'
          },
          success: function (res) {
            console.log(res.data)
            that.setData({
              qrcode: res.data.ewm,
              isHide: 1
            })
          }
        })
     
  }
})